package com.esteel.settlement.vo;

import java.io.Serializable;

import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;

/**
 * 条件查询基础类
 * @author zhangxiuzhi
 *
 */
public class BaseQueryVo implements Serializable {

	//取第几页
	public int page;
	//每页条数
	public int sizePerPage;
	public int getPage() {
		return page;
	}
	public int getSizePerPage() {
		return sizePerPage;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public void setSizePerPage(int sizePerPage) {
		this.sizePerPage = sizePerPage;
	}
	
	public Pageable getPageable(){
		return new PageRequest(page,sizePerPage);
	} 
	
	
}
